var key= require("key");

var number = 0;
function key_callback(keyName){
	print(number++);
	while(keyName == "key0" && number == 1)
	{
		
	}
	print("end of key");
}
//注册按键的回调函数
key.on(key_callback);

function loop(){
	while(true){

	}
}

loop();
